<template>
  <div class="swiper">
    <div class="banner">
      <img
        v-for="(item, index) in banner"
        :key="index"
        :src="item.pic"
        alt=""
      />
    </div>
  </div>
</template>

<script>
export default {
  name: "MySwiper",
  data() {
    return {
      banner: [
        {
          pic: "https://png.pngtree.com/back_origin_pic/03/57/73/67d3ea166833ff19b8c206c8e8bdeb79.jpg",
        },
      ],
    };
  },
};
</script>

<style lang='scss' scoped>
.swiper {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  // background-color: aqua;
}
.banner {
  width: 95%;
  height: 90px;
}
.banner img {
  width: 100%;
  height: 90px;
  border-radius: 10px;
}
</style>